package util;

import java.net.Socket;

public abstract class Command {
	private Socket socket;
	private String id; //id para o socket local IP+PORTA
	
	public final void setSocket(Socket sckt){
		this.socket = sckt;
		this.id = getSocket().getInetAddress().toString() + getSocket().getPort();
	}
	public final Socket getSocket(){
		return this.socket;
	}
	public final String getId(){
		return this.id;
	}
	public abstract void execute();
}
